import request from '@/utils/request'

// 查询在途分货方案预览列表
export function listAllocationSolutionpreview(query) {
  return request({
    url: '/productAllocation/AllocationSolutionpreview/list',
    method: 'get',
    params: query
  })
}

// 查询在途分货方案预览详细
export function getAllocationSolutionpreview(id) {
  return request({
    url: '/productAllocation/AllocationSolutionpreview/' + id,
    method: 'get'
  })
}

// 新增在途分货方案预览
export function addAllocationSolutionpreview(data) {
  return request({
    url: '/productAllocation/AllocationSolutionpreview',
    method: 'post',
    data: data
  })
}

// 修改在途分货方案预览
export function updateAllocationSolutionpreview(data) {
  return request({
    url: '/productAllocation/AllocationSolutionpreview',
    method: 'put',
    data: data
  })
}

// 删除在途分货方案预览
export function delAllocationSolutionpreview(id) {
  return request({
    url: '/productAllocation/AllocationSolutionpreview/' + id,
    method: 'delete'
  })
}
